package facade.subsystem;

import java.util.Random;

public class CPU {
    public boolean run(){
        System.out.println("CPU通电开始运行!");
        Random random = new Random();
        int cpuInfo = random.nextInt(10000);
        //CPU出问题的概率非常少，因此出问题的概率假设为1/10000。
        return cpuInfo < 9999;
    }
}
